package wickethub.web.page;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

import wickethub.domain.Snippet;
import wickethub.web.components.syntax.SyntaxHighlighterBehavior;

public class ViewSnippetPanel extends Panel {
	
	public ViewSnippetPanel(String id, IModel<Snippet> model) {
		super(id);
		
		Label code = new Label("code", model.getObject().getCode());
		code.add(new SyntaxHighlighterBehavior());
		add(code);
        
    }
    
}